import request from '@/config/axios'

export interface SteelFormVO {
  id: number
  productNumber: string
  productName: string
  creatorName: string
  updaterName: string
  partNumber: string
  partName: string
  drawingNumber: string
  productStandard: string
}

// 查询生产管理-工单管理-钢材下料清单列表
export const getSteelFormPage = async (params) => {
  return await request.get({ url: `/produce/steel-form/page`, params })
}

// 查询生产管理-工单管理-钢材下料清单详情
export const getSteelForm = async (params) => {
  return await request.get({ url: `/produce/steel-form/getWithDetail`, params})
}

// 导出生产管理-工单管理-钢材下料清单 Excel
export const exportSteelForm = async (params) => {
  return await request.download({ url: `/produce/steel-form/export-excel`, params })
}

// 导出生产管理-工单管理-钢材下料清单详情 Excel
export const exportSteelFormDetail = async (data) => {
  return await request.download({ url: `/produce/steel-form-details/export-excel`, data })
}